import 'package:demo1/pages/addressbook/ui_addressbook_sort.dart';
import 'package:demo1/pages/addressbook/ui_addressbook_list.dart';
import 'package:flutter/material.dart';

class AddressbookPage extends StatefulWidget {
  const AddressbookPage({Key? key}) : super(key: key);

  @override
  _AddressbookPageState createState() => _AddressbookPageState();
}

class _AddressbookPageState extends State<AddressbookPage> {
  @override
  Widget build(BuildContext context) {
    final _screen = MediaQuery.of(context).size;

    var sortlist = UiAddressbookSort();

    var items = Row(
      mainAxisAlignment: MainAxisAlignment.start,
      children: [
        Container(width: _screen.width * 0.25, child: sortlist),
        VerticalDivider(width: 1.0),
        Expanded(child: UiAddressbookList()),
      ],
    );

    return items;
  }
}
